package com.dtream.easycode.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品表(TbItem)实体类
 *
 * @author makejava
 * @since 2021-01-07 11:27:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_item")
public class TbItem extends BasePojo implements Serializable {
    private static final long serialVersionUID = -98879841948609096L;
    /**
     * 商品id，同时也是商品编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 商品标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 商品卖点
     */
    @TableField(value = "sell_point")
    private String sellPoint;
    /**
     * 商品价格，单位为：分
     */
    @TableField(value = "price")
    private Long price;
    /**
     * 库存数量
     */
    @TableField(value = "num")
    private Integer num;
    /**
     * 商品条形码
     */
    @TableField(value = "barcode")
    private String barcode;
    /**
     * 商品图片
     */
    @TableField(value = "image")
    private String image;
    /**
     * 所属类目，叶子类目
     */
    @TableField(value = "cid")
    private Long cid;
    /**
     * 商品状态，1-正常，2-下架，3-删除
     */
    @TableField(value = "status")
    private Object status;

}